home *** CD-ROM | disk | FTP | other *** search
- /*
- ==============================================================================
-
- Secondary Impulse Command Checker
-
- ==============================================================================
- */
-
-
- //=============================================================
- // CheckSecondaryImpulseCommands - Called by weapons.qc before
- // processing impulses
- //=============================================================
- void () CheckSecondaryImpulseCommands =
- {
- if (self.impulse == BOT_TOGGLE)
- BotToggle();
- if (self.impulse == BOT_AUTO_TOGGLE)
- BotAutoToggle();
- if (self.impulse == BOT_MOVE_FIRE)
- {
- if (self.bot_auto)
- BotFire();
- else
- BotMoveToggle();
- }
- if (self.impulse == BOT_LEFT_FIRE_TOGGLE)
- {
- if (self.bot_auto)
- BotFireToggle();
- else
- BotTurnLeft();
- }
- if (self.impulse == BOT_RIGHT_TELEPORT)
- {
- if (self.bot_auto)
- BotTeleportHome();
- else
- BotTurnRight();
- }
-
- if (self.impulse == BOT_LIGHT_TOGGLE)
- {
- BotLightToggle ();
- }
-
- if (self.impulse == BOT_GIVE_STATUS)
- {
- BotGiveStatus ();
- }
-
- return;
- };
-